<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"
	contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="ctl00_ctl00_Head1">
<base href="<%=basePath%>" />
<title>CSDN博客 | 文章分类</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_cookie.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_common.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_menu.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_ajax.js"></script>

<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_face.js"></script>
<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/source/script_manage.js"></script>
<link rel="shortcut icon"
	href="http://beta.hi.csdn.net/image/favicon.ico" />
<link rel="Stylesheet" type="text/css"
	href="http://hi.images.csdn.net/css/print.css" media="print" />
<link rel="Stylesheet" type="text/css"
	href="http://hi.images.csdn.net/css/blog/styles.css"
	media="screen, projection" />
<script src="http://hi.images.csdn.net/js/public/CommonNew.js"
	type="text/javascript"></script>
<script src="http://hi.images.csdn.net/js/public/jquery-1.2.3.pack.js"
	type="text/javascript"></script>



</head>
<body id="home">

<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/js/header.php"></script>

<div><input type="hidden" name="__EVENTTARGET" id="__EVENTTARGET"
	value="" /> <input type="hidden" name="__EVENTARGUMENT"
	id="__EVENTARGUMENT" value="" /> <input type="hidden"
	name="__VIEWSTATE" id="__VIEWSTATE"
	value="/wEPDwUJMzQ1OTMzNDE4ZBgBBR5fX0NvbnRyb2xzUmVxdWlyZVBvc3RCYWNrS2V5X18WAQUsY3RsMDAkY3RsMDAkY3BoQ29udGVudCRjcGhEb2MkY2tiTmV3SXNBY3RpdmUkp6ymUenwCHXVWLvNsIx7vKHw8A==" />
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['ctl00$ctl00$form1'];
if (!theForm) {
    theForm = document.ctl00$ctl00$form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>
<script
	src="/WebResource.axd?d=KI5BlEWgv_0cLMWql-513w2&amp;t=633912995661742500"
	type="text/javascript"></script>
<script
	src="/WebResource.axd?d=Unirsl6iLVv7ayoJPIXb2aqvE95tWli4_yguQahtkFFVz5G2Q-EezRK65k4MVWHPmudJTAaj7P1rCycFuXMAlQ2&amp;t=633927690557500000"
	type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
WebForm_InitPostBack();
//]]>
</script>
<script
	src="/WebResource.axd?d=4ki3TmEPNjG59vIp2SRg_Qnn55yzB8GYcYPvkXeUV6I1&amp;t=633912995661742500"
	type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (!theForm.__EVENTTARGET.value) return false;
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
if (WebForm_IsCallback() != false) {
    WebForm_PreDoCallback(theForm.__EVENTTARGET.value);
    WebForm_DoCallback('ctl00$ctl00$form1',theForm.__EVENTTARGET.value,WebForm_EndCallback,theForm.__EVENTTARGET.value,WebForm_ErrorCallback,true);
    return false;
};

return true;
}
//]]>
</script>

<div><input type="hidden" name="__EVENTVALIDATION"
	id="__EVENTVALIDATION"
	value="/wEWBQLW4chqApbqltkHAtn9iusGAuGf5owGAsnRtqkOTfFxsGCZiKjS90VBtWeBoqyyiew=" />
</div>

<div id="wrap">
<div id="body">
<div id="toppanel">


<div id="location" class="userlocation"><a
	href='http://hi.csdn.net/ph9527/'> <img
	src='http://avatar.csdn.net/p/ph9527/3' alt='ph9527' class="avatar" /></a>
<h3>博客管理</h3>

<span><a href='http://hi.csdn.net/my.html'>我的首页</a> &#92; 文章分类 </span>
<div class="defaultaction"><a
	href='EditCategories.aspx?catid=1#add'>+&nbsp;添加分类</a></div>
</div>

<hr class="hide" />


<ul id="tabnav" class="bottomborder">
	<li><a href="FriendsUserPosts.aspx">好友最新文章</a></li>
	<li><a href="PostList.aspx">文章管理</a></li>
	<li><a href="DraftList.aspx">草稿管理</a></li>
	<li class="selected"><a href='articleTypeManage/list'>文章分类</a></li>
	<li><a href="FeedBack.aspx">评论管理</a></li>
	<li><a href="EditLinks.aspx">自定义链接</a></li>
	<li><a href="EditLinksCategories.aspx">链接分类</a></li>
</ul>


</div>
<hr class="hide clear" />

<div id="blogcontent">

<div id="doc">



<div class="datalist">
<dl>

	<s:iterator value="list" var="type">
		<dt><span class="title"><s:property value="#type.title" />
		</span> <span class="left"> 可见 |
		<a href="articleTypeManage/articleTypeManager!updateInput?type.id=<s:property value="#type.id" />">编辑</a> | 
			<a href="articleTypeManage/articleTypeManager!delete?type.id=<s:property value="#type.id" />">删除</a> </span></dt>
		<dd>
		<p><s:property value="#type.description" /></p>
		</dd>

	</s:iterator>

</dl>
</div>

<hr class="hide" />
<a name="#add"></a>
<form action="articleTypeManage/articleTypeManager!add" method="post">
<fieldset><legend>添加新分类</legend>

<dl>
	<dt>标题： <span
		id="ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired"
		style="color: Red; visibility: hidden;">分类必须有一个标题</span></dt>
	<dd><input name="type.title" type="text"
		id="ctl00_ctl00_cphContent_cphDoc_txbNewTitle" class="textbox" /></dd>
	<dt>描述：</dt>

	<dd><textarea name="type.description" rows="2" cols="20"
		class="textbox" max="1000"></textarea> <span class="floatleft"><input
		id="ctl00_ctl00_cphContent_cphDoc_ckbNewIsActive" type="checkbox"
		name="ctl00$ctl00$cphContent$cphDoc$ckbNewIsActive" checked="checked" /><label
		for="ctl00_ctl00_cphContent_cphDoc_ckbNewIsActive">可见</label></span> <span
		class="floatright dimmed">（包含HTML共1000字符）</span></dd>
</dl>
<div class="submit clear"><input type="submit" value="添加分类"
	class="defaultbutton" /></div>
</fieldset>
</form>
</div>

</div>
</div>
</div>


<script type="text/javascript">
//<![CDATA[
var Page_Validators =  new Array(document.getElementById("ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired"));
//]]>
</script>
<script type="text/javascript">
//<![CDATA[
var ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired = document.all ? document.all["ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired"] : document.getElementById("ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired");
ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired.controltovalidate = "ctl00_ctl00_cphContent_cphDoc_txbNewTitle";
ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired.errormessage = "分类必须有一个标题";
ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
ctl00_ctl00_cphContent_cphDoc_valtxbNewTitleRequired.initialvalue = "";
//]]>
</script>
<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
WebForm_InitCallback();//]]>
</script>

<script language="javascript" type="text/javascript"
	src="http://beta.hi.csdn.net/js/footer.php"></script>
</body>
</html>

